<template>
	<div>
		<header class="header">
			<slot></slot>
			<!-- <i class="el-icon-user-solid" style="margin: 0 10px;"></i>用户管理 -->
		</header>
		<div class="operations">
			<div class="search_box">
				<el-input placeholder="请输入查询内容" v-model="data" @input="search" class="input-with-select">
					<el-button slot="append" icon="el-icon-search"></el-button>
				</el-input>
			</div>
			<el-row>
				<el-button plain icon="el-icon-circle-plus-outline" @click="showDialog('add')">新增</el-button>
			</el-row>
		</div>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				data:''
			}
		},
		methods:{
			search(){
				this.$emit("search",this.data)
			},
			showDialog(){
				this.$emit("showDialog")
			}
		}
	}
</script>

<style scoped>
	.header {
		font-size: 28px;
		color: #253041;
		box-sizing: border-box;
		padding: 30px 24px;
		position: relative;
		background-color: #fff;
		font-weight: 600;
	}

	.operations {
		background-color: #fff;
		padding: 30px;
		display: flex;
		justify-content: flex-end;
	}

	.search_box {
		flex: 1;
		box-sizing: border-box;
		padding-right: 30px;
	}

	.header::after {
		display: block;
		content: '';
		background-color: #33435b;
		position: absolute;
		width: 60%;
		height: 16px;
		border-radius: 16px 0 16px 0;
		bottom: 0;
	}
</style>
